<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="cn.gxj62.addStudent" %>
<html>
<head>
    <title>添加学生</title>
    <link rel="stylesheet" type="text/css" href="style/addStudent.css">
    <link rel="stylesheet" type="text/css" href="style/page.css">
</head>
<body>
<form action="addStudent" method="post">
    <h1>添加学生</h1>
    <table>
        <tr>
            <th>姓名</th>
            <td><label>
                <input type="text" name="name" required>
            </label></td>
        </tr>
        <tr>
            <th>年龄</th>
            <td><label>
                <input type="number" name="age" value="20" aria-valuemin="12" aria-valuemax="36" required>
            </label></td>
        </tr>
        <tr>
            <th>专业</th>
            <td><label>
                <input type="text" name="major" required>
            </label></td>
        </tr>
        <tr>
            <th>性别</th>
            <td>
                <input type="radio" id="male" name="sex" value="男" required>
                <label for="male">男</label>
                <input type="radio" id="female" name="sex" value="女" required>
                <label for="female">女</label>
            </td>
        </tr>
        <tr>
            <th>是否是班干部</th>
            <td>
                <input type="radio" id="yes" name="isLeader" value="是" required>
                <label for="yes">是</label>
                <input type="radio" id="no" name="isLeader" value="否" required>
                <label for="no">否</label>
            </td>
        </tr>
    </table>
    <input type="submit" value="添加">
</form>
<form><a href="index.jsp">返回主页</a></form>
</body>
</html>
